package com.gujiangbo.config;

import org.redisson.Redisson;
import org.redisson.config.Config;

/**
 * @Author: gujiangbo.co
 * @Contact: 646832012@qq.com
 * @Date: 2022/3/18 23:21
 * @Version: 1.0
 * @Description:
 */
public class RedisConfig {

    public static Redisson getRedisson() {
        Config config = new Config();
        config.useSingleServer().setAddress("redis://127.0.0.1:6379").setDatabase(0);
        return (Redisson) Redisson.create(config);
    }
}
